package com.jb.web.bean;

import com.jb.web.bean.inspector.OptionPropertyEditor;

public class TableColumn extends TableCell implements ValueHolder {

    public void setColumnClass(String param) {
        columnClass = param;
    }

    public String getColumnClass() {
        return columnClass;
    }

    public void setSortable(boolean param) {
        sortable = param;
    }

    public boolean isSortable() {
        return sortable;
    }

    public void setFieldName(String param) {
        fieldName = param;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setLov(String param) {
        lov = param;
    }

    public String getLov() {
        return lov;
    }

    public void setDataType(String param) {
        dataType = param;
    }

    public String getDataType() {
        return dataType;
    }

    public void setEditable(boolean param) {
        editable = param;
    }

    public boolean isEditable() {
        return editable;
    }

    public TableColumn() {
    }

    static final long serialVersionUID = 0x1e0f3L;
    private String columnClass;
    private boolean sortable;
    private boolean editable;
    private String fieldName;
    private String lov;
    private String dataType;

    static {
        publish(TableColumn.class, "Style", "width");
        publish(TableColumn.class, "Style", "height");
        publish(TableColumn.class, "Style", "columnClass");
        publish(TableColumn.class, "Model", "fieldName");
        publish(TableColumn.class, "Model", "sortable");
        publish(TableColumn.class, "Model", "editable");
        publish(TableColumn.class, "Model", "dataType", 
                new OptionPropertyEditor("static:,Text;date,Date;lov,Lov"));
    }
}
